/*
 * TarifasDelegate.java
 *
 * Created on 17 de mayo de 2007, 09:11 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.facturacion.tarifas.delegate;

import com.src.computec.facturacion.noclass.dto.DepartamentoDto;
import com.src.computec.facturacion.tarifas.exception.TarifasException;
import com.src.computec.facturacion.tarifas.helper.TarifasHelper;
import com.src.computec.radar.base.delegate.BaseDelegate;
import java.util.List;

/**
 *
 * @author FSanchez
 */
public class TarifasDelegate extends BaseDelegate {
    
    private TarifasHelper tarifasHelper;
    /** Creates a new instance of TarifasDelegate */
    public TarifasDelegate() {
        tarifasHelper=new TarifasHelper();
    }
    
    public List getAllTarifasNodos() throws TarifasException{
        return tarifasHelper.getAllTarifasNodo();
    }
    
    public List getTarifasByNodos(String pNodo,String pTipoTarifa) throws TarifasException{
        return tarifasHelper.getTarifasByNodo(pNodo, pTipoTarifa);                
    }

    public String getTarifaByMunCentroP(List pFilters) throws TarifasException{
        return tarifasHelper.getTarifaByMunCentroP(pFilters);  
    }

    public void updateTarifaNodo(List pFilters) throws TarifasException {
        tarifasHelper.updateTarifaNodo(pFilters);
    }

    public boolean insertTipoTarifa(String pDescripcion) throws TarifasException {
        return tarifasHelper.insertTipoTarifa(pDescripcion);
    }
    
    public int[] updateAllTarifaNodo(List pTarifas,String pCodTipoTarifa,String pCodNodo) throws TarifasException{
        return tarifasHelper.updateAllTarifaNodo(pTarifas, pCodTipoTarifa, pCodNodo);
    }
    
    public boolean insertAllNodoIntoTarifaNodo(String pCodNodo) throws TarifasException{
        return tarifasHelper.insertAllNodoIntoTarifaNodo( pCodNodo);
    }
    
    public int insertTryNodoIntoTarifaNodo(String pCodNodo) throws TarifasException{
        return tarifasHelper.insertTryNodoIntoTarifaNodo(pCodNodo);    
    }
    
    public void insertDANEIntoTarifaNodo(List pFilters) throws TarifasException{
        tarifasHelper.insertNodoIntoTarifaNodo(pFilters);
    }
    
     public int deleteAllTarifaNodo(List pTarifas,String pCodTipoTarifa,String pCodNodo) throws TarifasException{
         return  tarifasHelper.deleteAllTarifaNodo(pTarifas, pCodTipoTarifa, pCodNodo);
     }
}
